import req from '@/api/js/http'

/*
export  async function login():Promise<ResultData<UserInfo>>{
    
    const res = await req.post<UserInfo>('/login', { name: 'test', passwd: '12343' });
    return res.data;

}
*/

export   function login():Promise<ResultData<IUserInfo>>{
    
    return req.post<IUserInfo>('/login', { name: 'test', passwd: '12343' });

}